﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SacNetUg.Master" Inherits="System.Web.Mvc.ViewPage<SacNetUG.Models.Content>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit Content
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit Content</h2>

    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm()) {%>

            <table>
            <%= Html.HiddenFor(model => model.Id) %>
            <%= Html.ValidatedEditorFor(model => model.Controller)%>
            <%= Html.ValidatedEditorFor(model => model.Action)%>
            <%= Html.ValidatedEditorFor(model => model.PageTitle)%>
            <%= Html.ValidatedEditorFor(model => model.PageHeader)%>
            <%= Html.ValidatedCkEditorFor(model => model.HtmlContent)%>
            
        <tr>
            <td>
            </td>
            <td>
                <input type="submit" value="Submit" />
            </td>
        </tr>
    </table>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>

